package com.hd.day01;

public class demo03 {
    public static void main(String[] args) {
        int a = 10;

        int b = a;
        int n = 0;

        //for (int i = 0; i < 4; i++) {
        for (; a > n; ) {

            int g = a % 10;  // 各位

            n = n * 10 + g;

            a = a / 10;
        }
        //System.out.println(n - a == 0);
        System.out.println(n == a || n / 10 == a);
    }
}
